package com.jmye.boot.logging.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 作者
 * @create 2024-07-02-23:25
 */
@Slf4j
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello(){
        log.debug("debug 日志");
        log.info("info 日志");
        log.warn("warn 日志");
        log.error("error 日志");
        return "Spring Boot 3.x Logging";
    }

}
